const path = require('path')
const resolve = dir => {
  return path.join(__dirname, dir)
}
module.exports = {
  publicPath: './',
  chainWebpack: config => {
    config.resolve.alias
      .set('_c', resolve('src/components')) // key,value自行定义，比如.set('@@', resolve('src/components'))
  },
  devServer:{
    port: 8080, // 端口号
    proxy: { 
      "/dpc": {
        "target": "http://127.0.0.1:6966",
        "changeOrigin": true,
        "secure": false,
        "pathRewrite": {
          "^/dpc": "/"
        }
      },
      "/api": {
        "target": "192.168.2.246:8081/SYXMCServer",
        "changeOrigin": true,
        "secure": false,
        "pathRewrite": {
          "^/dpc": "/"
        }
      },
    },
  },
  lintOnSave: false,

}